<template>
	<button
	  open-type="getUserInfo"
	  hover-class="none"
	  @getuserinfo="toGoodsHistory"
	  class="goods-history-btn"
	  id='goods-history-btn'
	  <!-- #ifdef H5 -->
	  @click="toGoodsHistory"
	  <!-- #endif -->
	>
	</button>
</template>

<script>
export default {
	data() {
		return {
			topNum:0,
			pageHeight: uni.getSystemInfoSync().windowHeight - 94,
		}
	},
	props: {
		beginHeight:{
			type:[Number,String],
			default:0
		}
	},
	computed: {
	},
	mounted(){
	},
	methods: {
		toGoodsHistory(e){
			uni.pageScrollTo({
				scrollTop: this.beginHeight,
				duration: 0
			});
		},
		// viewBtn(scrollTop){
		// 	if(scrollTop > this.pageHeight){
		// 		this.backTopBtnShow = true;
		// 	}else{
		// 		this.backTopBtnShow = false;
		// 	}
		// }
	}
};
</script>

<style lang="scss" scoped>
	.goods-history-btn{
		width: 88rpx;
		height: 88rpx;
		background-image: url('@/static/public/icon_ready.png');
		background-size: contain;
		background-repeat: no-repeat;
		z-index: 10;
		margin-bottom: env(safe-area-inset-bottom);
	}
</style>
